{include file="public/header" /}
        <style>
            .backgroud_content .jianchajilu .date_box_1 {
                width: 250px;
                display: inline-block;
                height: 50px;
                border: none;
                outline: none;
                border-radius: 10px;
                border: 1px solid #ddd;
                margin-right: 10px;
            }
            .backgroud_content .opt_rizhi .jcjl_detail .search_box .date_box select{
                appearance:none;
              -moz-appearance:none;
              -webkit-appearance:none;
              background-image: url(__STATIC__/index/imgs/narow_b.png) ;
              background-size: 18px 10px;
              background-repeat: no-repeat;
              background-position: 125px center;
            }
            .backgroud_content .jianchajilu .date_box_1  input {
                border-radius: 10px;
                text-align: center;
                outline: none;
                border: none;
                width: 100%;
                height: 48px;
                color: #999;
                font-size: 16px;
                background-image: url(../imgs/rili.png);
                background-size: 25px 25px;
                background-position: 200px center;
                background-repeat: no-repeat;
            }
            .backgroud_content .opt_rizhi .date_box{
                width: 160px;
            }
            .backgroud_content .jianchajilu .date_box_1{
                width: 170px;
            }
            .backgroud_content .jianchajilu .date_box div input{
                background-position: 128px center;
            }
        </style>
<body style="background-color: #f1f1f1;">
<div class="index_html houtai">

    {include file="public/second_header" /}


    <!-- 地下内容的开始 -->
    <div class="backgroud_content ">
        <!-- 左侧的开始 -->

        {include file="public/nav" /}
        <!-- 左侧的结束 -->


        <!-- 右侧的开始 -->
        <div class="right_bar jianchajilu hou_huanzheguanli opt_rizhi">
            {include file="public/go_back" /}

            <div class="jcjl_detail">
                <div class="top_dec">
                    <div>
                        <span class="theme">操作日志</span>
                    </div>
                </div>

                <div class="data">

                    <div class="search_box">
                        <form action="{:url('log/index')}" id="searchbtn1" method="get"><!-- 下面是搜索  -->

                            <span>操作人员:</span>
                            <div class="date_box start_date">

                                <select name="admin_type" id="admin_name">

                                    <option value=""> 请选择人员类型</option>
                                    <option value="1" {if condition="isset($search['admin_type']) && $search['admin_type'] eq 1"}selected{/if}> 平台管理员</option>
                                    <option value="2"  {if condition="isset($search['admin_type']) && $search['admin_type'] eq 2"}selected{/if}> 医生</option>

                                </select>

                            </div>
                            <span>操作人员：</span>
                            <!-- 结束日期 -->
                            <div class="date_box_1">

                                    <input  name="admin_name" type="text" value="{$search['admin_name']?? ''}" id="admin_name_search">

                            </div>
                            <span>操作日期：</span>
                            <!-- 结束日期 -->
                            <div class="date_box end_date">
                                <script type="text/javascript">
                                    $(function () {
                                        $('.end_date_picker').date_input();
                                    })
                                </script>
                                <div style="">

                                    <input style="" id="start_time" name="start" type="text" class="end_date_picker"
                                           value="{$search['start']?? ''}" id="end_date">
                                </div>


                            </div>

                        <!-- 结束的日期结束 -->
                        </form>

                        <br>
                        <form action="{:url('log/del_log')}" class="horizontal" method="post" role="form"><!-- 下面是搜索  -->

                            <div class="list">
                                <span class="list_tit"><i></i>数据列表</span>
                                <span>清除日志：</span>
                                <div class="date_box end_date">
                                    <script type="text/javascript">
                                        $(function () {
                                            $('.end_date_picker').date_input();
                                        })
                                    </script>
                                    <div class="xiala">
                                        <select name="delmonth" id="delmonth">
                                            <option value="1">过去一周</option>
                                            <option value="2">过去一个月</option>
                                            <option value="3">过去三个月</option>
                                            <option value="4">过去一年</option>
                                        </select>
                                    </div>

                                </div>
                                <div class="sure_btn">
                                        <input type="button" class="btn-permission ajax-post" value="确定">
                                </div>

                            </div>
                        </form>
                    </div>
                    <!--<div class="search_by_name">-->
                    <!--<input type="text"  name ="name" value="{$search['name']?? ''}" placeholder="查找姓名或身份证">-->
                    <!--<button type="submit" value="搜索" class="sou_btn">搜索</button>-->
                    <!--</div>-->


                    <!-- 日历的输入  开始 -->
                    <!-- 下面的   列表 开始  -->
                    {if condition="!$list->isEmpty()"}

                    <div class="liebiao">

                        <div class="liebiao_dec">
                            <div class="liebiao_top">
                                <input type="checkbox">
                                <strong class="first">用户ID</strong>
                                <strong class="second">操作者</strong>
                                <strong class="forth">操作时间</strong>
                                <strong class="fifth">操作记录</strong>
                            </div>
                            <ul>
                                {foreach $list as $log}

                                <li>
                                    <a>
                                        <input type="checkbox">
                                        <span class="first">
												<em>{$log.admin_id}</em>
											</span>
                                        <span class="second">
												<em>{$log.admin_name}</em>
											</span>
                                        <!--<span  class="third">-->
                                        <!--<em>129.15.255.253</em>-->
                                        <!--</span>-->
                                        <span class="forth">
												<em>{$log.create_time}</em>
											</span>
                                        <span class="fifth" style="white-space:nowrap;overflow:hidden;text-overflow:ellipsis;">
												{$log.content}
											</span>
                                    </a>
                                </li>
                                {/foreach}
                            </ul>
                        </div>
                    </div>
                    <!-- 列表的结束 -->
                    <!-- 列表的结束 -->

                    {include file="public/page" /}
                    {else/}
                    暂无记录
                    {/if}
                </div>
            </div>
        </div>
        <!-- 右侧的结束 -->
    </div>
</div>
<script>

    $('#admin_name').change(function (e) {
        $("#searchbtn1").submit();
    });
    $('#start_time').change(function (e) {
        $("#searchbtn1").submit();
    });

    $('#admin_name_search').change(function (e) {
        $("#searchbtn1").submit();
    });
</script>
{include file="public/footer" /}